package com.arpa.wms.domain.enums;

import com.baomidou.mybatisplus.core.enums.IEnum;

import java.util.HashMap;
import java.util.Map;

/**
 * 临时库区、库位类型
 * @program: wms
 * @description:
 * @author: xuyang
 * @create: 2020-10-12 14:21
 */
public enum TempLocationTypeEnum implements IEnum<String> {
    /**
     * 临时库位类型
     */
    SH("SHLSKW", "收货临时库位"),
    FH("FHLSKW", "发货临时库位"),
    MO("MOLSKW", "移位临时库位"),
    RE("RELSKW", "退件临时库位"),
    YD("YDKW", "预打包临时库位"),
    /**
     * 临时库区名称
     */
    LSKQ("LSKQ", "临时库区");

    /**
     * 值
     */
    private final String value;

    /**
     * 描述
     */
    private final String desc;

    TempLocationTypeEnum(final String value, final String desc) {
        this.value = value;
        this.desc = desc;
    }

    private static final Map<String, TempLocationTypeEnum>  map = new HashMap();

    @Override
    public String getValue() {
        return this.value;
    }

    @Override
    public String toString(){
        return this.desc;
    }

    public String getDesc() {
        return this.desc;
    }
}
